<%@page import = "clothing.database.SupplierManager" %>
<%@ include file = "templates/header.jsp" %>

<%

String name = request.getParameter("name");
String contactnum = request.getParameter("contactnum");
String street = request.getParameter("street");
String city =request.getParameter("city");
String state = request.getParameter("state");
String zip = request.getParameter("zip");
System.out.println(name +" "+contactnum+" "+street+" "+city+" "+state+" "+zip  );
int cn = Integer.parseInt(contactnum);
int z = Integer.parseInt(zip);

SupplierManager sm = new SupplierManager();
sm.insert(name, cn, street, city, state, z);

response.sendRedirect("displaySupplier.jsp");

%>
<%@ include file = "templates/footer.jsp" %>